import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
import VueRouter from "vue-router"
Vue.use(VueRouter);
Vue.use(ElementUI)
import newsbox from './components/newsbox.vue'
import axios from 'axios'
import VueAxios from 'vue-axios'
import qs from 'qs';
Vue.use(VueAxios, axios)
const router = new VueRouter({
  mode: 'history',
  base: __dirname,
  routes: [
    {
      path:'/',
      components:{newsbox:newsbox},
	 },
		 
    

  ]
})

// 路由器会创建一个 App 实例，并且挂载到选择符 #app 匹配的元素上。
const app = new Vue({
      router: router,
     
     
      render: h => h(App)
}).$mount('#app')